package com.dongjiantong.farmrecords.service;

import com.dongjiantong.farmrecords.model.FarmRecordsRetailImmunization;
import com.dongjiantong.farmrecords.model.FarmRecordsRetailImmunizationSub;
import com.dongjiantong.mybatis.BaseService;

/**
 * @author Lee
 * @date 2018/1/15
 */
public interface FarmRecordsRetailImmunizationSubService extends BaseService<FarmRecordsRetailImmunizationSub> {
    /**
     * 根据子表id查询对应记录
     * @param id
     * @return
     */
    FarmRecordsRetailImmunizationSub selectBySubId(Long id);

    /**
     * 新建
     * @param farmRecordsRetailImmunization
     * @param farmRecordsRetailImmunizationSub
     * @param times
     * @return
     */
    Long createOneSub(FarmRecordsRetailImmunization farmRecordsRetailImmunization, FarmRecordsRetailImmunizationSub farmRecordsRetailImmunizationSub, Integer times);
}
